/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: jse2303 - Arr5
 * <p>Powered by webrx On 2023-07-12 16:02:44
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr5 {
    public static void main(String[] args) {
        int[] n1 = {1, 2, 3};

        //二维数组，元素是一维数组
        int[][] n2 = {{10, 20, 30}, {1, 2, 3}, {11, 22}, {33}};

        System.out.println(n2[3][0]);

        //三维
        //var n3 = new int[1][2][3];

        //四维
        //var n4 = new int[1][2][3][4];

        var n6 = new int[1][2][3][4][5][10][3];
        System.out.println(Arrays.deepToString(n6));


        //String[2][3]
        var ss = new String[][]{{"a1", "a2", "a3"}, {"aa", "bb", "cc"}};
        System.out.println(ss[1][1]);
        System.out.println(Arrays.deepToString(ss));


    }
}
